73ae8bc1da4a105d885ef9e733b895e3b28e4ed6,src/jchrest-architecture/jchrest/gui/VisualSearchPane.java,SceneView,paint,#Graphics#,739
Before Change
if (_showFixations) {
for (Fixation fixation : _fixations) {
g2.setColor (Color.BLUE);
g2.setStroke (new BasicStroke (2));
int nextX = offsetX + scale * fixation.getX () + 5;
int nextY = offsetY + scale * fixation.getY () + 5;
if (prevX == -1 && prevY == -1) {
After Change
int prevY = -1;
if (_showFixations) {
g2.setColor (Color.RED); // first fixation in red
g2.setStroke (new BasicStroke (6)); // with thick border
for (Fixation fixation : _fixations) {
int nextX = offsetX + scale * fixation.getX () + 5;
int nextY = offsetY + scale * fixation.getY () + 5;
if (prevX == -1 && prevY == -1) {
; // draw nothing for first oval
} else {
g2.drawLine (prevX, prevY, nextX+5, nextY+5);
}
g2.drawOval (nextX, nextY, scale-10, scale-10);
prevX = nextX+5;
prevY = nextY+5;
g2.setColor (Color.BLUE); // remaining fixations in blue
g2.setStroke (new BasicStroke (2)); // and narrower
}
}
}